<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/** Categories models **/
class Categories extends CI_Model {
	private $categories = 'categories';
	
	function getDropdownCategories(){
		$data     = array();
		$query    = $this->db->get($this->categories);
		if ($query->num_rows() > 0):
           foreach ($query->result_array() as $row):
             $data[$row['category_id']] = $row['category_name'];
           endforeach;  
		endif;		
		return $data;
	}
}